package Fenetres;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import DAO.ProfilDAO;

import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JSeparator;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class Fenetre_Recherche_Profil extends JFrame {

	private JPanel contentPane;
	private JTextField nomPersonne;
	private JTextField nomprofil;
	private JTextField prenomPersonne;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Fenetre_Recherche_Profil frame = new Fenetre_Recherche_Profil();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Fenetre_Recherche_Profil() {
		
		ProfilDAO profilDAO = new ProfilDAO();
		
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 832, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblNomPersonne = new JLabel("Nom Personne: ");
		lblNomPersonne.setFont(new Font("Century Gothic", Font.PLAIN, 16));
		lblNomPersonne.setBounds(450, 29, 154, 49);
		contentPane.add(lblNomPersonne);
		
		nomPersonne = new JTextField();
		nomPersonne.setBounds(574, 38, 176, 36);
		contentPane.add(nomPersonne);
		nomPersonne.setColumns(10);
		
		JButton Rechercher = new JButton("Rechercher Profil");
		Rechercher.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				
				
			}
		});
		Rechercher.setFont(new Font("Century Gothic", Font.PLAIN, 14));
		Rechercher.setBounds(129, 182, 163, 49);
		contentPane.add(Rechercher);
		
		JButton SupprimerProfil = new JButton("Supprimer Profil");
		SupprimerProfil.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				
				
			}
		});
		SupprimerProfil.setFont(new Font("Century Gothic", Font.PLAIN, 14));
		SupprimerProfil.setBounds(323, 182, 163, 49);
		contentPane.add(SupprimerProfil);
		
		JButton Switchprofil = new JButton("Changer Profil Personne");
		Switchprofil.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				
				
			}
		});
		Switchprofil.setFont(new Font("Century Gothic", Font.PLAIN, 14));
		Switchprofil.setBounds(513, 182, 220, 49);
		contentPane.add(Switchprofil);
		
		JLabel nomProfil = new JLabel("Nom du Profil : ");
		nomProfil.setFont(new Font("Century Gothic", Font.PLAIN, 16));
		nomProfil.setBounds(40, 68, 140, 49);
		contentPane.add(nomProfil);
		
		nomprofil = new JTextField();
		nomprofil.setColumns(10);
		nomprofil.setBounds(176, 77, 176, 36);
		contentPane.add(nomprofil);
		
		prenomPersonne = new JTextField();
		prenomPersonne.setColumns(10);
		prenomPersonne.setBounds(574, 112, 176, 36);
		contentPane.add(prenomPersonne);
		
		JLabel lblPrenomPersonne = new JLabel("Prenom Personne : ");
		lblPrenomPersonne.setFont(new Font("Century Gothic", Font.PLAIN, 16));
		lblPrenomPersonne.setBounds(424, 103, 154, 49);
		contentPane.add(lblPrenomPersonne);
	}
}
